package com.youlai.system.model.form;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
@Data
public class EmployForm {
    @Schema(description = "员工ID")
    private Integer id;
    @Schema(description = "手机号")
    private String mobile;
    @Schema(description = "员工姓名")
    private String username;
    @Schema(description = "头像")
    private String staffPhoto;
    @Schema(description = "工号")
    private String workNumber;
    @Schema(description = "部门id")
    private Integer departmentId;

    @Schema(description="入职时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate timeOfEntry;
    @Schema(description = "转正时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate correctionTime;


    @Schema(description="雇佣形式")
    private Integer formOfEmployment;

    @Schema(description = "用户的角色集合")
    private String[] roleIdArray;
    @Schema(description="离职时间")
    private LocalDate timeOfOut;

}
